import request from '@/api/axios/request.js'


export default {
  // 文章分类
  getCatalogList(){
    return request({
      url:'article/CatalogList',
      method:'post',
    })
  },
  // 文章首页分页
  getpagesInfo(page,size){
    return request({
      url:'article/all',
      method:'post',
      data:{
        page,
        size
      }
    })
  },

  //获取已有文章的分类
  getArticleCatalog(uid){
    return request({
      url:'article/getArticleCatalog',
      method:'post',
      data:{
        uid
      }
    })
  },

  //通过文章分类id+查询文章
  getCatalogArticle(uid,catalogId){
    return request({
      url:'article/getCatalogArticle',
      method:'post',
      data:{
        uid,
        catalogId
      }
    })
  },
}
